package com.activity.adapter;

import android.content.Context;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.activity.App;
import com.activity.bean.ClassBean;
import com.activity.bean.UserBean;
import com.api.response.TodayResponse;
import com.donkingliang.groupedadapter.holder.BaseViewHolder;

import com.example.apple.ddhr_new.R;
import com.example.apple.ddhr_new.adapter.BaseAdapter;
import com.example.apple.ddhr_new.utils.StringUtil;

import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;

public class ClockAdapter extends BaseAdapter <Object> {

    public ClassBean classSpan;
    public TodayResponse todayCheck;

    public ClockAdapter(Context context) {
        super(context);
    }

    public ClockListener clockListener;
    @Override
    public int getChildrenCount(int groupPosition) {
        return 1;
    }

    @Override
    public BaseViewHolder<Object> getViewHolder(int viewType, View view) {
        return null;
    }

    @Override
    public int getChildLayout(int viewType) {
        return R.layout.item_clock_cell;
    }

    @Override
    public void onBindChildViewHolder(com.donkingliang.groupedadapter.holder.BaseViewHolder holder, int groupPosition, int childPosition) {






        holder.itemView.findViewById(R.id.l_group).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                if(clockListener!=null){
                    clockListener.attanceGroupClick();
                }
            }
        });



    }

    public  interface  ClockListener{
        public  void  attanceGroupClick();
    }
}
